<!--录入补缓考成绩-->
<template>
  <div class="approval-container" style="width:100%">
    <div class="search-container">
      <div class="search-container-left">
        <!-- pjguideadd -->
        <div
          class="export-button"
          style="width: 180px;"
          @click="pjguidesubmit1"
        >
          <img src="../../../assets/assessment/class-add-icon.png" alt="" />
          <span>新建标准体系等级</span>
        </div>
      </div>
    </div>
    <div class="plan-entry-table-container">
      <el-table
        :data="tableData"
        style="width: 100%"
        class="xpaas-table-class"
        row-class-name="xpaas-row-class"
        cell-class-name="xpaas-cell-class"
        header-row-class-name="xpaas-header-row-class"
        header-cell-class-name="xpaas-header-cell-class"
      >
        <el-table-column
          prop="pjEvalguide.guidename"
          label="标准体系名称"
          
          align="center"
          class-name=""
          label-class-name=""
        >
        </el-table-column>
        <el-table-column
          prop="pjGuiderank.guiderankoption"
          label="采用的标准等级"
          
          align="center"
          class-name=""
          label-class-name=""
        >
        </el-table-column>

        <el-table-column prop="sjcl" label="操作"  align="center">
          <template slot-scope="scope">
            <div class="cz-row-block">
              <div
                class="download-buttons"
                @click="show(scope.row.pjEvalguide.guideid)"
              >
                <img
                  src="../../../assets/assessment/icon-plan-record-save.png"
                  alt=""
                />
                <span>查看</span>
              </div>
              <!--             showMessageDialog-->
              <div
                class="download-buttons"
                @click="pjalllerdelete1(scope.row.pjEvalguide.guideid)"
              >
                <img
                  src="../../../assets/assessment/icon-plan-record-save.png"
                  alt=""
                />
                <span>删除</span>
              </div>
              <div
                class="ztcz-detail"
                @click="
                  pjByIdGuide1(
                    scope.row
                  )
                "
              >
                <img
                  src="../../../assets/assessment/icon-plan-record-detail.png"
                  alt=""
                />
                <span>编辑</span>
              </div>
              <!--              /admin/paperPrint/approvaleg-->
              <div
                class="download-buttones"
                @click="
                  pjWeihu(
                    scope.row.pjEvalguide.guideid,
                    scope.row.pjEvalguide.guidename,
                    scope.row.pjGuiderank.guiderankoption
                  )
                "
              >
                <img src="../../../assets/admin_slices/acem.png" alt="" />
                <span>维护</span>
              </div>
            </div>
          </template>
        </el-table-column>
      </el-table>
    </div>

    <!--    删除-->
    <el-dialog
      title="提示"
      :visible.sync="showMessageDialog"
      width="983px"
      style=" height:520px"
      class="message-container"
    >
      <div class="message-text">
        <div v-if="this.namelist.plan"></div>
        <div v-else>确定要删除吗？</div>
      </div>
     
      <span slot="footer" class="dialog-footer">
        <!--      dialogClickconfirm('Message')  -->
        <button class="green" @click="pjalllerdelete('Message')">确 定</button>
      </span>
      <span slot="footer" class="dialog-footer">
        <button class="yellow" style="margin-left:85px" @click="dialogClickconfirm('Message')">
          取 消
        </button>
      </span>
    </el-dialog>

    <el-dialog
      title="新建标准体系等级"
      :visible.sync="showManualEntryDialog"
      width="1185px"
      class="manual-entry-container"
    >
      <div class="my-form-container" style="width:100%;height:350px">
        <el-row>
          <el-col :span="16">
            <div>标准体系名称</div>
            <div>
              <el-input
                v-model="guidenameput"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>选择标准等级</div>
            <div>
              <el-select style="width: 220px" v-model="guiderankid">
                <el-option
                  v-for="(item, index) in class_frequencys"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </div>
          </el-col>

        </el-row>
        <el-row class="my-form-item">
          <el-col>
            <div style="height:155px;">标准体系简介</div>
            <div class="my-form-item-value assessment-design">
              <el-input
                v-model="guidecommentsput"
                type="textarea"
                :rows="6"
                style=" width: 100%;
            margin-top: 60px;  margin-left: -20px;"
                placeholder="请输入内容"
              ></el-input>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <!--        pjguidesubmit
             showManualEntryDialog = false-->
        <button @click="pjguidesubmit">保存</button>
      </span>
    </el-dialog>

    <!--    编辑-->
    <el-dialog
      title="编辑标准体系等级"
      :visible.sync="showManualEntryDialog1"
      width="1185px"
      class="manual-entry-container"
    >
      <div class="my-form-container" style="width:100%;height:350px">
        <el-row>
          <el-col :span="16">
            <div>标准体系名称</div>
            <div>
              <el-input
                v-model="txmc"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>选择标准等级</div>
            <div>
              <el-select style="width: 220px" v-model="guiderankid">
                <el-option
                  v-for="(item, index) in class_frequencys"
                  :key="index"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
            </div>
          </el-col>
        </el-row>
        <el-row class="my-form-item">
          <el-col>
            <div style="height:155px;">标准体系简介</div>
            <div class="my-form-item-value assessment-design">
              <el-input
                v-model="txjj"
                type="textarea"
                :rows="6"
                style=" width: 100%;
            margin-top: 60px;  margin-left: -20px;"
                placeholder="请输入内容"
              ></el-input>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <!--        pjguidesubmit
             showManualEntryDialog = false-->
        <button @click="pjByIdGuide">保存</button>
      </span>
    </el-dialog>
    <!--以上是编辑保存-->

    <el-dialog
      title="查看"
      :visible.sync="showManualEntryDialogasc"
      width="1185px"
      class="manual-entry-containerass"
    >
      <div class="my-form-container" style="width:100%;height:534px">
        <el-row>
          <el-col :span="16">
            <div>标准体系名称</div>
            <div>
              <el-input
                v-model="class_nameac1"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>所属上级指标项名称</div>
            <div>
              <el-input
                v-model="class_nameac2"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项级别</div>
            <div>
              <el-input
                v-model="class_nameac3"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项名称</div>
            <div>
              <el-input
                v-model="class_nameac4"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="16">
            <div>指标项说明</div>
            <div>
              <el-input
                v-model="class_nameac5"
                style="width: 234px"
                placeholder="名称填写"
              ></el-input>
            </div>
          </el-col>
        </el-row>
      </div>
      <span slot="footer" class="dialog-footer">
        <button
          class="yellow"
          style="width:95px"
          @click="dialogClickconfirm('Message')"
        >
          取 消
        </button>
      </span>
      <span slot="footer" class="dialog-footer">
        <button @click="showManualEntryDialogasc = false">保存</button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import {
  pjalller,
  pjalllerdelete,
  pjguideadd,
  pjguidesave
} from "@/api/teacher/admin";

export default {
  data() {
    return {
      txmc:"",
      txjj:"",
      guiderankid: "",
      showManualEntryDialogasc: false,
      showManualEntryDialog: false,
      showMessageDialog: false,
      showManualEntryDialog1: false,

      guideid: "",
      guidecomments: "",
      guidename: "",
      guiderankoption: "",

      guidecommentsput: "", //指标说明填写
      guidenameput: "", //指标名称填写
      // table:{
      //   guiderankid: "3",
      //   guiderankoption: "q,w,e,r",
      //   guiderankvalue: "1,2,3,4"
      // },
      tableData: [],
      yjnameList: [],
      searchNameList: [],
      handleSelection: [],
      namelist: {},
      class_frequencys: []
    };
  },
  computed: {
    ...mapGetters(["userInfo"])
  },
  mounted() {
    this.pjalller();
  },
  methods: {
    //查询全部标准体系
    pjalller() {
      return new Promise(() => {
        pjalller().then(res => {
          this.tableData = res.data.data;
          console.log("res.data.data", res.data.data);
          // this.guideid =  res.data.data.pjEvalguide.guideid
        });
      });
    },
    //查看调转
    show(guideid) {
      this.$router.push({
        path: "/admin/evaluation/seeStandardManagement",
        query: { guideid: guideid }
      });
    },

    //删除标准体系
    pjalllerdelete1(guideid) {
      this.showMessageDialog = true;
      this.guideid = guideid;
      console.log(guideid, "guideid");
    },
    pjalllerdelete() {
      let ids = {};
      ids = this.guideid;
      console.log(ids, "ids");
      return new Promise(() => {
        pjalllerdelete(ids).then(res => {
         
          if (res.data.msg == 0) {
            this.$message.error("该条数据有下级指标项或者评教活动引用了它不能删除！");
            this.showMessageDialog = false;
          } else {
            this.tableData = res.data.data;
            this.showMessageDialog = false;

            this.pjalller();
          }
        });
      });
    },

    //查询所有标准等级
    pjguidesave() {
      pjguidesave().then(res => {
        let dataArr = res.data.data;
        // this.class_frequencys = [];
        for (let i = 0; i < dataArr.length; i++) {
          let obj = {
            label: dataArr[i].guiderankoption,
            value: dataArr[i].guiderankid
          };
          this.class_frequencys.push(obj);
        }
      });
    },
    //编辑标准体系跳转
    pjByIdGuide1(
    roc
    ) {   
      this.guideid = roc.pjEvalguide.guideid,
      this.txjj = roc.pjEvalguide.guidecomments,
      this.txmc = roc.pjEvalguide.guidename,
      this.guiderankoption = roc.pjGuiderank.guiderankoption,
      this.guiderankid = roc.pjGuiderank.guiderankid;
      console.log(roc.pjEvalguide,"1")
       console.log( roc.pjGuiderank,"2")
      this.showManualEntryDialog1 = true;
      this.pjguidesave();
    },
    //保存编辑
    pjByIdGuide() {
      if(this.txmc!=""){
      
      let obj = {
        guidecomments: this.txjj,
        guideid: this.guideid,
        guidename: this.txmc,
        guiderankid: this.guiderankid
      };
      console.log(obj,"22222222")
       return new Promise(() => {
        //教员查询到所有数据
        pjguideadd(obj).then(res => {
          if (res.data.msg == 0) {
            this.$message("不能保存");
          }
         // this.tableData = res.data.data;
          this.showManualEntryDialog1 = false;
          this.pjalller();
        });
      });
      }else{
        this.$message.error('标准体系名称和标准等级不能为空!');
      }
    },

    //添加标准体系跳转
    pjguidesubmit1() {
      this.guidenameput=""; this.guiderankid=""; this.guidecommentsput="";
      this.showManualEntryDialog = true;
      this.pjguidesave();
    },
    //添加标准体系
    pjguidesubmit() {
      if(this.guidenameput!=""&&this.guiderankid!=""){
      let obj = {
        guidecomments: this.guidecommentsput,
        guidename: this.guidenameput,
        guideid: this.guideid,
        guiderankid: this.guiderankid
      };
      (obj.guidecomments = this.guidecommentsput),
        (obj.guidename = this.guidenameput);
      return new Promise(() => {
        //教员查询到所有数据
        pjguideadd(obj).then(res => {
          if (res.data.code == 200) {
            this.tableData = res.data.data;
            this.showManualEntryDialog = false;
            this.pjalller();

            this.guidecommentsput = "";
            this.guidenameput = "";
            this.guideid = "";
            this.guiderankid = "";
          }
        });
      });
      
      }else{
        this.$message.error('标准体系名称和标准等级不能为空!');
      }
     
    },

    //维护跳转
    pjWeihu(guideid, guidename, guiderankoption) {
      this.$router.push({
        path: "/admin/paperPrint/approvaleg",
        query: {
          guideid: guideid,
          guidename: guidename,
          guiderankoption: guiderankoption
        }
      });
    },


    dialogClickconfirm(type) {
      let obj = {};
      if (type === "Message") {
        this.showMessageDialog = !this.showMessageDialog;
      } else if (type === "Rename") {
        obj.id = this.namelist.id;
        obj.status = "0";
        this.showRenameDialog = !this.showRenameDialog;
        this.getUpdate(obj);
      }
    }
  }
};
</script>
<style lang="less" scoped>
@fontFamily:"Microsoft YaHei";
.xpaas-table-class {
  border: 1px solid #004ca7;
  border-radius: 9px;
  margin: 15px 0;
  > ::v-deep div.el-table__header-wrapper {
    > table.el-table__header {
      > thead {
        > tr.xpaas-header-row-class {
          padding: 0;
          height: 76px;
          background-color: #edf2f9;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: bold;
          line-height: 20px;
          color: #004ca7;
          > th.xpaas-header-cell-class {
            font-weight: bold;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;
            > div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
  > ::v-deep div.el-table__body-wrapper {
    > table.el-table__body {
      > tbody {
        > tr.xpaas-row-class {
          > td.xpaas-header-cell-class {
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            background-color: #edf2f9;
            > div.cell {
              font-size: 16px;
              font-weight: bold;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
          > td.xpaas-cell-class {
            height: 76px;
            border-right: 1px solid #c7d7eb;
            border-left: 0;
            border-bottom: 1px solid #c7d7eb;
            > div.cell {
              font-weight: normal;
              font-family: @fontFamily;
              color: #004ca7;
            }
          }
        }
      }
    }
  }
}
.approval-container {
  .back-container {
    .back-text {
      margin-top: 33px;

      > div {
        display: inline-block;

        &:nth-child(1) {
          padding-left: 111px;
          font-size: 20px;
          color: rgba(0, 76, 167, 1);
          font-weight: bold;
          vertical-align: top;
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
    }
  }
  .manual-entry-container {
    .el-dialog__body {
      height: 390px;
      > div {
        width: 1014px;
        border: 1px solid rgba(0, 76, 167, 0.8);
        border-radius: 6px;
        margin: 0 auto;
        > div {
          border-bottom: 1px solid rgba(0, 76, 167, 0.39);
          &:last-child {
            border-bottom: none;
          }
          > div {
            display: flex;
            > div {
              height: 96px;
              display: flex;
              align-items: center;
              justify-content: center;
              &:nth-child(1) {
                width: 420px;
                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #004ca7;
                background: rgba(77, 129, 192, 0.1);
              }
              &:nth-child(2) {
                padding-left: 19px;
              }
            }
          }
        }
      }
    }
    .el-dialog__footer {
      padding-bottom: 43px;
    }
    .dialog-footer {
      > button {
        width: 87px;
        height: 36px;
        background: #fff6ef;
        border: 1px solid #f3b815;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #f3b815;
      }
    }
  }
  .message-container {
    .message-text {
      > div {
        padding: 57px 0 63px 0;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        text-align: center;
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
      display: flex;
      justify-content: space-evenly;
    }
  }

  .paper-message-container {
    .paper-message-text {
      > div {
        padding: 57px 0 63px 0;
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        text-align: center;
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
    }

    .confirm-button {
      width: 87px;
      height: 36px;
      padding: 0;
      background: #f1fff8;
      border: 1px solid #02c86c;
      border-radius: 4px;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #02c86c;
      cursor: pointer;
      margin-right: 92px;
    }

    .cancle-button {
      .confirm-button;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
      margin-right: 0px;
    }
  }

  .upload-paper-container {
    .paper-container {
      width: 100%;
      height: 236px;
      opacity: 1;

      .paper-container-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        font-family: Microsoft YaHei;

        margin-bottom: 35px;
        border: 1px solid #004ca7;

        .paper-container-box1 {
          width: 233px;
          height: 126px;
          background: rgba(0, 76, 167, 0.1);
          opacity: 0.1;
          border-radius: 5px 0px 0px 0px;
          display: flex;
          align-items: center;
          justify-content: center;

          .title {
            width: 90px;
            height: 24px;
            font-size: 18px;
            font-family: Microsoft YaHei;
            font-weight: bold;
            line-height: 20px;
            color: rgba(0, 76, 167, 1);
            opacity: 1;
          }
        }

        .paper-container-box2 {
          margin-left: 15px;
        }

        .upload-button {
        }

        .file-name {
          max-width: 340px;
          margin-right: 10px;
        }

        .scan-button {
          width: 62px;
          height: 28px;
          line-height: 28px;
          background: #fff6ef;
          border: 1px solid #f3b815;
          border-radius: 4px;
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #f3b815;
          text-align: center;
          cursor: pointer;
        }

        .download-button {
          .scan-button;
          background: #f1f8fe;
          border: 1px solid #51aef6;
          color: #51aef6;
        }

        img {
          width: 18px;
          height: 19px;
          margin-right: 14px;
        }

        .re-upload-button {
          .upload-button;
          width: 80px;
          color: #02c86c;
          border: 1px solid #02c86c;
          background: #dfffef;

          input {
            width: 80px;
          }
        }
      }
    }

    .el-dialog__footer {
      padding-bottom: 95px;
    }

    .confirm-button {
      width: 87px;
      height: 36px;
      padding: 0;
      background: rgba(90, 101, 204, 0.1);
      border: 1px solid #5230e9;
      border-radius: 4px;
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #5230e9;
      cursor: pointer;
      margin-right: 92px;
    }

    .cancle-button {
      .confirm-button;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
      margin-right: 0px;
    }

    .download-button {
      .confirm-button;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      color: #51aef6;
      margin-right: 92px;
    }
  }

  .plan-entry-table-container {
    margin-top: 30px;

    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }

    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 76px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }

    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 86px;
    }

    .export-button {
      background: #ebe6ff;

      cursor: pointer;

      background: #fff6ef;
      border: 1px solid #5230e9;
      width: auto;
      height: 28px;
      line-height: 28px;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;

      > span {
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #f3b815;
      }

      > img {
        width: 16px;
        height: 16px;
        margin-right: 5px;
      }
    }

    .bk-lucj-import-button {
      .export-button;
      width: 70px;
      background: #f1fff8;
      border: 1px solid #02c86c;
      box-sizing: border-box;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      > span {
        color: #02c86c;
      }
    }

    .bk-lucj-expot-button {
      .export-button;
      width: 156px;
      background: #fef1e8;
      border: 1px solid #f86900;
      box-sizing: border-box;
      margin: 0 auto 12px;

      &:last-child {
        margin-bottom: 0px;
      }

      > span {
        color: #f86900;
      }
    }

    .tjst-button {
      width: 78px;
      height: 27px;
      line-height: 27px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 4px;
      text-align: center;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #51aef6;
      cursor: pointer;
    }

    .dh-button {
      .tjst-button;
      margin-top: 12px;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
    }

    .cx-button {
      .tjst-button;
      background: #ffefef;
      border: 1px solid #ff3819;
      color: #ff3819;
    }

    .cz-block {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .txmtjh-button {
      .tjst-button;
      width: 114px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }

    .ckmtjh-button {
      .tjst-button;
      width: 114px;
      background: #f1fff8;
      border: 1px solid #02c86c;
      color: #02c86c;
    }

    .xz-button {
      .tjst-button;
      width: 51px;
      background: #edf2f9;
      border: 1px solid #004ca7;
      color: #004ca7;
    }

    .name-button {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      line-height: 25px;
      color: #004ca7;
      text-decoration: underline;
    }

    .name-button:hover {
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 25px;
      color: #187ef8;
    }

    .upload-button {
      .tjst-button;
      width: 98px;
      margin: 0 5px;
      background: #efebff;
      border: 1px solid #5230e9;
      color: #5230e9;
    }

    .download-button {
      .tjst-button;
      width: 48px;
      margin: 0 5px;
    }

    .yl-button {
      .tjst-button;
      width: 48px;
      margin: 0 5px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }

    .cz-row-block {
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;
      .download-buttones {
        align-items: center;
        width: 78px;
        height: 28px;
        line-height: 28px;
        background: #efebff;
        border: 1px solid #5230e9;

        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #5230e9;
        }
        > img {
          width: 16px;
          height: 16px;
          margin-right: 10px;
        }
      }
      .download-buttons {
        align-items: center;
        width: 78px;
        height: 28px;
        line-height: 28px;
        background: #ffefef;
        border: 1px solid #ff3819;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #fb563c;
        }
        > img {
          width: 16px;
          height: 16px;
          margin-right: 10px;
        }
      }
      .ztcz-detail {
        .download-buttons;
        background: #f1fff8;
        border: 1px solid #02c86c;
        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #02c86c;
        }
      }
    }

    .zz-button {
      .tjst-button;
      width: 132px;
      margin: 5px;
      background: #efebff;
      border: 1px solid #5230e9;
      color: #5230e9;
    }

    .tx-button {
      .tjst-button;
      width: 132px;
      letter-spacing: 2px;
      margin: 0 5px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      color: #51aef6;
    }

    .sjfx-button {
      .tjst-button;
      width: 114px;
      margin: 0 5px;
      background: #fff6ef;
      border: 1px solid #f3b815;
      color: #f3b815;
    }
  }

  .choose-ypr-container {
    width: 767px;
    margin: 0px auto;

    .choose-ypr-search-container {
      .el-input--prefix .el-input__inner {
        padding-left: 30px;
      }

      .el-input__inner {
        &::placeholder {
          color: #b8b8b8;
        }

        &::-webkit-input-placeholder {
          /* WebKit browsers 适配谷歌 */
          color: #b8b8b8;
        }

        &:-moz-placeholder {
          /* Mozilla Firefox 4 to 18 适配火狐 */
          color: #b8b8b8;
        }

        &::-moz-placeholder {
          /* Mozilla Firefox 19+ 适配火狐 */
          color: #b8b8b8;
        }

        &:-ms-input-placeholder {
          /* Internet Explorer 10+  适配ie*/
          color: #b8b8b8;
        }
      }

      display: flex;
      flex-direction: row;
      align-items: center;

      .title {
        font-size: 18px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
        margin-right: 5px;
      }

      .search-button {
        width: 127px;
        height: 28px;
        line-height: 28px;
        background: #f1f8fe;
        border: 1px solid #51aef6;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        > span {
          font-size: 16px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #51aef6;
        }

        > img {
          width: 20px;
          height: 20px;
          margin-right: 4px;
        }
      }

      .button-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 21px;

        .button-item {
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          position: relative;
          width: 69px;
          height: 27px;
          line-height: 27px;
          border: 1px solid #004ca7;
          border-radius: 4px;
          margin-right: 10px;
          text-align: center;
          font-size: 14px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #004ca7;

          .del-icon {
            position: absolute;
            right: 0px;
            top: 0px;
            width: 12px;
            height: 12px;
            padding: 2px;
          }
        }
      }
    }

    .choose-ypr-table-container {
      margin-top: 30px;

      .el-table td,
      .el-table th.is-leaf,
      .el-table--border,
      .el-table--group {
        border-color: #c7d7eb;
      }

      .el-table__header tr,
      .el-table__header th {
        padding: 0;
        height: 57px;
        background-color: #edf2f9;
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: bold;
        line-height: 20px;
        color: #004ca7;
      }

      .el-table__body tr,
      .el-table__body td {
        padding: 0;
        height: 51px;
      }

      .table-data {
        width: 100%;
        border: 0.8px solid #004ca7;
        border-radius: 9px;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #004ca7;
      }
    }
  }
  .manual-entry-containerass {
    .el-dialog__body {
      > div {
        width: 1014px;
        border: 1px solid rgba(0, 76, 167, 0.8);
        border-radius: 6px;
        margin: 0 auto;
        > div {
          border-bottom: 1px solid rgba(0, 76, 167, 0.39);
          &:last-child {
            border-bottom: none;
          }
          > div {
            display: flex;
            > div {
              width: 900px;
              height: 96px;
              display: flex;
              align-items: center;
              justify-content: center;
              &:nth-child(1) {
                width: 420px;
                text-align: center;
                font-size: 16px;
                font-weight: bold;
                color: #004ca7;
                background: rgba(77, 129, 192, 0.1);
              }
              &:nth-child(2) {
                padding-left: 19px;
              }
            }
          }
        }
      }
    }
    .el-dialog__footer {
      padding-bottom: 43px;
    }
    .dialog-footer {
      > button {
        width: 87px;
        height: 36px;
        background: #fff6ef;
        border: 1px solid #f3b815;
        border-radius: 6px;
        background: rgba(255, 246, 239, 1);
        font-size: 18px;
        color: #f3b815;
      }
    }
  }
  .pagination-block {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
}
</style>

<style lang="less" scoped>
@import "../../../styles/approval.less";

.plan-entry-table-container {
  margin-top: 30px;

  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}
.approval-container .search-container {
  margin-top:0;
  padding-left:0;
}
</style>
